Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Dockerfile --no-install-recommends #7846

Merged
merged 5 commits into from
May 16, 2022
Merged

Conversation

glenn-jocher
Copy link
Member

@glenn-jocher glenn-jocher commented May 16, 2022

Per https://ubuntu.com/blog/we-reduced-our-docker-images-by-60-with-no-install-recommends

🛠️ PR Summary

Made with ❤️ by Ultralytics Actions

🌟 Summary

Improved Docker build efficiency by optimizing Linux package installations.

📊 Key Changes

  • Modified the apt install command to include --no-install-recommends which reduces the number of installed packages.

🎯 Purpose & Impact

  • Reduced Image Size: By not installing recommended but unnecessary packages, the Docker images will be smaller, which saves storage space and speeds up the download time for users.
  • Faster Build Times: Smaller images lead to quicker build and deployment processes, improving efficiency.
  • Streamlined Environments: Reduces potential for software conflicts and security vulnerabilities by limiting the number of packages installed in the images.

@glenn-jocher glenn-jocher self-assigned this May 16, 2022
@glenn-jocher glenn-jocher changed the title Update Dockerfile-cpu --no-install-recommends Update Dockerfile --no-install-recommends May 16, 2022
@glenn-jocher glenn-jocher merged commit 614ef11 into master May 16, 2022
@glenn-jocher glenn-jocher deleted the update/docker-cpu branch May 16, 2022 23:29
tdhooghe pushed a commit to tdhooghe/yolov5 that referenced this pull request Jun 10, 2022
* Update Dockerfile-cpu `--no-install-recommends`

Per https://ubuntu.com/blog/we-reduced-our-docker-images-by-60-with-no-install-recommends

* Update Dockerfile-M1

* Update Dockerfile

* Update Dockerfile-M1

* Update Dockerfile-cpu
ctjanuhowski pushed a commit to ctjanuhowski/yolov5 that referenced this pull request Sep 8, 2022
* Update Dockerfile-cpu `--no-install-recommends`

Per https://ubuntu.com/blog/we-reduced-our-docker-images-by-60-with-no-install-recommends

* Update Dockerfile-M1

* Update Dockerfile

* Update Dockerfile-M1

* Update Dockerfile-cpu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant